#CONTROL(SaveButton,'Write Records to a data file'),PRIMARY('Update Record on Disk',NOKEY),DESCRIPTION('Update ' & %Primary & ' record on disk'),WINDOW,HLP('~TPLControlSaveButton')
CONTROLS
BUTTON('OK'),USE(?OK),DEFAULT,REQ
END
#LOCALDATA
ActionMessage CSTRING(40)
RecordChanged BYTE,AUTO
#ENDLOCALDATA
#CLASS('Prime Fields','Prime Fields of ' & %Primary & ' record at beginning of Insert')
#PROMPT('When called for delete:',DROP('Standard Warning|Display Form|Automatic Delete')),%ActionOnDelete,DEFAULT('Standard Warning')
#ENDENABLE
#ENABLE(%InsertAllowed = %True)
#BUTTON('Field Priming on Insert'),MULTI(%PrimingFields,%PrimedField & ' = ' & %PrimedValue),AT(10),HLP('~TPLControlSaveButton')
#PROMPT('Field to Prime:',FIELD),%PrimedField,REQ
#PROMPT('Initial Value:',@S255),%PrimedValue,REQ
#ENDBUTTON
#ENDENABLE
#BUTTON('Messages and Titles'),HLP('TPLControlSaveButton'),HLP('~TPLControlSaveButton')
#ENABLE(%InsertAllowed = %True)
#PROMPT('&Insert Message:',@S40),%InsertMessage,DEFAULT('Record will be Added')
#ENDENABLE
#ENABLE(%ChangeAllowed = %True)
#PROMPT('Chan&ge Message:',@S40),%ChangeMessage,DEFAULT('Record will be Changed')
#ENDENABLE
#ENABLE(%DeleteAllowed = %True)
#PROMPT('De&lete Message:',@S40),%DeleteMessage,DEFAULT('Record will be Deleted')
#ENDENABLE
#ENABLE(%InsertAllowed OR %ChangeAllowed)
#PROMPT('On Aborted Add/Change:',DROP('Offer to save changes|Confirm cancel|Cancel without confirming')),%ActionOnCancel,DEFAULT('Offer to save changes')
#ENDENABLE
#PROMPT('&Location of Message:',DROP('None/Window Control|Title Bar|Status Bar')),%MessageLocation
#ENABLE(%MessageLocation='Status Bar')
#PROMPT('Status Bar Section:',@n1),%MessageStatusSection,REQ
#ENDENABLE
#PROMPT('Display Record Identifier on the Title Bar',CHECK),%AppendToTitle,AT(10,,180)
#CONTROL(FileDrop,'File-Loaded Drop Box'),PRIMARY('File Loaded Drop Box',OPTKEY),DESCRIPTION('File Loaded Drop Box on ' & %Primary),WINDOW,MULTI,HLP('~TPLControlFileDrop')
#IF ( %FillField <> %FirstDropField AND %TargetField )
IF ~%ControlUse AND %TargetField = %InstancePrefix:%FillField THEN
%ControlUse = %InstancePrefix:%FirstDropField
END
#ENDIF
#! A file loaded drop combo box
#! Combo may only have one populated field
#! Target field may either be same as populated or different
#! In absence of use value call up form (optionally)
#CONTROL(FileDropCombo,'File-Loaded Drop Combo'),PRIMARY('File Loaded Drop Combo',OPTKEY),DESCRIPTION('File Loaded Drop Combo on ' & %Primary),WINDOW,MULTI,HLP('~TPLControlFileDropCombo')
#CONTROL(FieldLookupButton,'Trigger an Entry Control Lookup'),DESCRIPTION('Trigger an Entry Control Lookup'),WINDOW,MULTI,HLP('~TPLControlFieldLookupButton')
CONTROLS
BUTTON('...'),AT(,,12,12),USE(?CallLookup)
END
#BOXED('Field Lookup Button Prompts')
#PROMPT('Control with lookup:',CONTROL),%ControlToLookup